class AdminMailer < ActionMailer::Base
  default :from => CONF.site_email
  
  def error(exception, session = nil, params = nil, env = nil)
    @exception = exception
    @session = session
    @params = params
    @env = env
    path = env && (": " + env['REQUEST_URI']) || ""
    mail(:to => CONF.webmaster_emails, :subject => "Aggie Error#{path}")
  end
end
